package com.xysq.widget;

/**
 * Created by Steward_Han on 2015/8/6.
 */

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;

import com.xysq.lemon.R;


public class ReleaseImageDialog extends Dialog {

    Context context;

    public ReleaseImageDialog(Context context) {
        super(context);
    }

    public ReleaseImageDialog(Context context, int theme) {
        super(context, theme);
    }

    public static class Builder {
        private Context context;
        public Button photoButton;
        public Button pictureButton;
        public Button cancleButton;

        public Builder(Context context) {
            this.context = context;
        }

        public ReleaseImageDialog create() {
            LayoutInflater inflater = (LayoutInflater) context
                    .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            final ReleaseImageDialog dialog = new ReleaseImageDialog(context,
                    R.style.Dialog);
            View layout = inflater.inflate(R.layout.component_release_image_dialog, null);
            dialog.setContentView(layout);
            photoButton = (Button) layout.findViewById(R.id.photo);
            pictureButton = (Button) layout.findViewById(R.id.picture);
            cancleButton = (Button) layout.findViewById(R.id.cancle);
            return dialog;
        }
    }
}

